<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>环境</title>

    <link href="../css/video-learning.css" rel="stylesheet">

    <script src="../plugins/vue.js"></script>
    <script src="../plugins/element-ui/lib/index.js"></script>
    <link rel="stylesheet" href="../plugins/element-ui/lib/theme-chalk/index.css">
    <script src="../plugins/axios-0.18.0.js"></script>
    <script src="../plugins/js.cookie.min.js"></script>
</head>

<body>
<div class="video_lesson" id="video-app">
    <div class="fill"></div>

    <div class="upper_navMenu">
        <el-menu
                :default-active="activeIndex2"
                class="el-menu-demo"
                mode="horizontal"
                @select="handleSelect"
                background-color="#91C7FF"
                text-color="#fff"
                active-text-color="#E83D3D">

            <el-submenu index="1">
                <template slot="title">我的工作台</template>
                <el-menu-item index="2-1">选项1</el-menu-item>
                <el-menu-item index="2-2">选项2</el-menu-item>
                <el-menu-item index="2-3">选项3</el-menu-item>
                <el-submenu index="2-4">
                    <template slot="title">选项4</template>
                    <el-menu-item index="2-4-1">选项1</el-menu-item>
                    <el-menu-item index="2-4-2">选项2</el-menu-item>
                    <el-menu-item index="2-4-3">选项3</el-menu-item>
                </el-submenu>
            </el-submenu>
        </el-menu>

        <div class="left_navMenu">
            <el-row class="tac">
                <el-col :span="12">
                    <el-menu
                            default-active="2"
                            class="el-menu-vertical-demo"
                            @open="handleOpen"
                            @close="handleClose"
                            background-color="#91C7FF"
                            text-color="#fff"
                            active-text-color="#E83D3D">
                        <el-submenu index="1">
                            <template slot="title">
                                <span>导航一</span>
                            </template>
                            <el-menu-item-group>
                                <el-menu-item index="1-1">选项1</el-menu-item>
                                <el-menu-item index="1-2">选项2</el-menu-item>
                                <el-menu-item index="1-3">选项3</el-menu-item>
                            </el-menu-item-group>
                            <el-submenu index="1-4">
                                <template slot="title">选项4</template>
                                <el-menu-item index="1-4-1">选项1</el-menu-item>
                            </el-submenu>
                        </el-submenu>
                        <el-menu-item index="2">

                            <span slot="title">导航二</span>
                        </el-menu-item>
                        <el-menu-item index="3">

                            <span slot="title">导航三</span>
                        </el-menu-item>
                        <el-menu-item index="4">

                            <span slot="title">导航四</span>
                        </el-menu-item>
                    </el-menu>
                </el-col>
            </el-row>
        </div>

        <div class="slideshow">
            <template>
                <el-carousel :interval="4000" type="card" height="200px">
                    <el-carousel-item v-for="item in 6" :key="item">
                        <h3 class="medium">{{ item }}</h3>
                    </el-carousel-item>
                </el-carousel>
            </template>

            <style>
                .el-carousel__item h3 {
                    color: #475669;
                    font-size: 14px;
                    opacity: 0.75;
                    line-height: 200px;
                    margin: 0;
                }

                .el-carousel__item:nth-child(2n) {
                    background-color: #99a9bf;
                }

                .el-carousel__item:nth-child(2n+1) {
                    background-color: #d3dce6;
                }
            </style>
        </div>

    </div>
</div>
</body>
<script>
    new Vue({
        el:"#video-app",
        data(){
            return {
                activeIndex: '1',
                activeIndex2: '1'
            }
        },
        methods: {
            handleSelect(key, keyPath) {
                console.log(key, keyPath);
            },
            handleOpen(key, keyPath) {
                console.log(key, keyPath);
            },
            handleClose(key, keyPath) {
                console.log(key, keyPath);
            }
        },

    })
</script>
</html>